<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue列表展示v-for指令</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in movies">{{ item }}</li>
        </ul>

    </div>
</body>
<script src="../js/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",
        data: {
            message: '你好啊',
            movies: ['战狼','战狼2','红海行动','中国蓝盔','金刚川'],
        }
    });
</script>
</html>